package appapi.Vo.record;

import appapi.entity.record.MonthInspectionEntity;
import appapi.entity.record.MonthdetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/06/01 13:45
 */
@ApiModel
@Data
public class AddMonthDetailVo {

    /**
     * 检测项目
     */
    @ApiModelProperty(value = "检测项目",required = true)
    private String monthItem;

    /**
     * 0正常 1异常
     */
    @ApiModelProperty(value = "结果 0正常 1异常",required = true)
    private Integer monthResult;

    @ApiModelProperty(value = "备注说明")
    private String monthDesc;

    @ApiModelProperty(value = "图片地址")
    private List<String> imgUrl;

    /**
     * 检测要求
     */
    @ApiModelProperty(value = "检测要求",required = true)
    private String monthRequire;

    public MonthdetailEntity vo2Entity(){
        MonthdetailEntity entity = new MonthdetailEntity();
        BeanUtils.copyProperties(this,entity);
        return entity;
    }
}
